//
//  XQHomeCourseMode.swift
//  XiaoQiQiaoSwift
//
//  Created by tech-lab on 2016/11/28.
//  Copyright © 2016年 校企桥. All rights reserved.
//


import UIKit
import ObjectMapper



class XQHomeCourseMode: Mappable {

    var author : String?
    var course_name : String?
    var course_photo : String?
    var end : String?
    var expect : String?
    var fact : String?
    var id : String?
    var identity : String?
    var member_id : String?
    var price : String?
    var start : String?
    var status : String?
    var study_num : String?
    var type : String?

    required init?(map: Map) {
        
    }
    
    
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        author <- map["author"]
        course_name <- map["course_name"]
        course_photo <- map["course_photo"]
        end <- map["end"]
        expect <- map["expect"]
        fact <- map["fact"]
        id <- map["id"]
        identity <- map["identity"]
        member_id <- map["member_id"]
        price <- map["price"]
        start <- map["start"]
        status <- map["status"]
        study_num <- map["study_num"]
        type <- map["type"]

    }
}


class XQHomePositionMode: Mappable {
    
    var area_id : String?
    var id : String?
    var position_name : String?
    var position_type : String?
    var salary : String?
    
    
    var c_time : String?
    var company_name : String?
    var company_size : String?
    var company_type : String?
    var education : String?
    var experience : String?
    var logo : String?
   
    
    required init?(map: Map) {
        
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        area_id <- map["area_id"]
        id <- map["id"]
        position_name <- map["position_name"]
        position_type <- map["position_type"]
        salary <- map["salary"]
        
        c_time <- map["c_time"]
        company_name <- map["company_name"]
        company_size <- map["company_size"]
        company_type <- map["company_type"]
        education <- map["education"]
        experience <- map["experience"]
        logo <- map["logo"]
    }
    
}

class XQHomeTopMode: Mappable {
    
    var id : String?
    var title : String?
    var url : String?
    
    required init?(map: Map) {
       
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        title <- map["title"]
        id <- map["id"]
        url <- map["url"]
    }
}


class XQHomeMode: Mappable {
    
    var error : NSString?
    var jobs : [XQHomePositionMode]?
    var top : XQHomeTopMode?
    var course: [XQHomeCourseMode]?

    
    required init?(map: Map) {
        
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        
        course <- map["course"]
        error <- map["error"]
        jobs <- map["jobs"]
        top <- map["top"]
    
    }
}

